<?php

namespace App\Common;


use App\Services\Pay\PayService;
use Illuminate\Support\Facades\Log;

class ProduceOrderSuccessAction
{
    public static function action(array $data): void
    {
        try {
            Log::channel('waitpay')->error("start:", $data);
            //AMQP支付
            PayService::produceOrderOkHandle($data);
        } catch (\Exception $ex) {
            Log::channel('waitpay')->error("入队" . $ex->getMessage() . ' | ' . $ex->getFile() . ' | ' . $ex->getLine(), $data);
        }
    }
}